/**
* Created by ren on 2017/1/6.
*/
<template>
  <div class='dtList'>
    <div class="dt-Detail">
      <div class="name" style="width: auto">{{dttqRecord.objectName}}</div>
      <div class="item"><label>已购黄金</label>：{{(dttqRecord.weight/1000).toFixed(1)}}g</div>
    </div>
    <div style="padding:0 30px 30px 30px">
      <div style="font-size:20px;color:#333333;margin:30px 0">
        <span>物流状态：</span><span style="color:#e6760a">暂无物流信息</span>
      </div>
      <div style="font-size:16px;margin-bottom:10px">订单编号：{{dttqRecord.orderNo}}</div>
      <div style="font-size:16px">信息来源：顺丰快递</div>
      <div class="track-line" style="border-top:1px solid #ccc;margin-top:30px;padding-top:30px"
           v-if="false">
        <ul>
          <li class="active">
            <div>已签收，签收人是本人签收</div>
            <div>2015-09-17 11:01:01</div>
            <div class="line">
              <img :src="true?require('../../assets/track2.png'):require('../../assets/track1.png')">
            </div>
          </li>
          <li>
            <div>已签收，签收人是本人签收</div>
            <div>2015-09-17 11:01:01</div>
            <div class="line">
              <img :src="false?require('../../assets/track2.png'):require('../../assets/track1.png')">
            </div>
          </li>
          <li class="start">
            <div>已签收，签收人是本人签收</div>
            <div>2015-09-17 11:01:01</div>
            <div class="line">
              <img :src="false?require('../../assets/track2.png'):require('../../assets/track1.png')">
            </div>
          </li>
        </ul>
      </div>
      <div style="color:#fd8f23;margin-top: 30px;">
        温馨提示：黄金属贵金属物品请务必亲自开箱检查确认签收。
      </div>
    </div>
    <Notify :parentThis='this'></Notify>
  </div>
</template>

<script>
  import API from '../../api'
  import Notify from '../Notify'
  export default {
    name: 'dtList',
    components: {
      Notify
    },
    data: function () {
      return {
        nextPage: 0,
        trackData: [],
        notifyStatus: 2,
        dttqRecord: ''
      }
    },
    methods: {
      getRouteRequest: function () {
        this.$http.post(API.getRouteRequest, {
          orderNo: this.$route.params.dtId
        }).then((ret) => {
          const result = ret.body
          if (result.code === 1) {
            this.trackData = result.object
          } else {
            this.trackData = {
              code: 0,
              msg: result.message
            }
          }
        }, (err) => {
          console.log(err)
        })
      },
      todtDetail: function (orderNo) {
        this.$router.push({name: 'dtDetail', params: {dtId: orderNo}})
      }
    },
    mounted: function () {
      this.getRouteRequest()
      this.dttqRecord = JSON.parse(this.$cookie.get('dttqRecord'))
    }
  }
</script>
